<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org">
<input type="hidden" th:value="${content}" id="content"/>
<head th:remove="tag" th:fragment="flashMessage">
	<script>
		var content = $("#content").val();
		if (content !== "") {
			$().ready(function() {
				$.globalMessenger().post({
					message : "${content}",
					type : '${type}' || "info",
					hideAfter : 3
				});
			});
		}
		function renderMessage(message) {
			$.globalMessenger().post({
				message : message.cont,
				type : message.type || "info",
				hideAfter : 3
			});
		}
	</script>
</head>
</html>